<!DOCTYPE html>
<html class="x-admin-sm">

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.2</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/xadmin.css">
    <script src="../js/jquery.min.js" charset="utf-8"></script>
    <script src="../lib/layui/layui.js" charset="utf-8"></script>
    <script src="../js/commonutil.js" charset="utf-8"></script>
    <script src="./function.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/xadmin.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-nav">
            <span class="layui-breadcrumb">
                <a>
                    <cite>首页</cite>
                </a>
                <a>
                    <cite>渠道管理</cite>
                </a>
                <a>
                    <cite>渠道管理</cite>
                </a>
            </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" id="reloadTemplateData" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
    </a>
</div>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5" id="queryChannelTable">
                        <div class="layui-inline">
                            <label class="layui-form-label">渠道名称：</label>
                            <div class=" layui-show-xs-block layui-inline ">
                                <input type="text" name="channelName" id="channelName" placeholder="渠道名称" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">渠道编号：</label>
                            <div class="layui-inline layui-show-xs-block">
                                <input type="text" name="channelNo" id="channelNo" placeholder="渠道编号" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">旧渠道编号：</label>
                            <div class="layui-inline layui-show-xs-block">
                                <input type="text" name="channelMappingNo" id="channelMappingNo" placeholder="旧渠道编号" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-inline layui-show-xs-block">
                            <div class="layui-btn" data-type="query" id="submitBtn"><i class="layui-icon">&#xe615;</i>查询</div>
                            <div class="layui-btn" data-type="reset" id="resetBtn"><i class="layui-icon">&#xe631;</i>重置</div>
                        </div>
                    </form>
                </div>

                <div class="layui-card-body ">
                    <!-- 数据表格部分-->
                    <table class="layui-table" id="searchTable" lay-filter="searchTable"></table>
                </div>
                <!-- 分页部分-->
                <div id="tablePage" style="padding-left: 18px"></div>
            </div>
        </div>
    </div>
</div>
</body>

<!--表格头部-->
<script type="text/html" id="tableToolbar">
    <div class="layui-btn-container">
        <button class = "layui-btn layui-btn-sm" lay-event = "create" > 新增 </button>
    </div>
</script>
<!--表格右侧工具栏-->
<script type="text/html" id="barSearch">
    <div class = "layui-btn-container" >
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail" style="background-color: #00FFFF">查看</a>
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="update" style="background-color: #00FFFF">修改</a>
        <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="delete" style="background-color: #00FFFF">删除</a>
    </div >
</script>
<script>
    jQuery(function(){
        let requestUrl = serverPre + "/manager/scs/v2/channel/list";
        //开启默认查询
        submit(requestUrl);
    });

    //查询数据
    $('#submitBtn').click(function () {
        let requestUrl = serverPre + "/manager/scs/v2/channel/list";
        submit(requestUrl);
    });
    //清空条件
    $('#resetBtn').click(function () {
        document.getElementById("queryChannelTable").reset();
    });
</script>
</html>
